{% block sw_promotion_v2_settings_trigger %}
<div class="sw-promotion-v2-settings-trigger-settings">

    {% block sw_promotion_v2_settings_trigger_description %}
    <sw-promotion-v2-wizard-description
        class="sw-promotion-v2-settings-trigger-settings__description"
    >
        {{ $tc('sw-promotion-v2.detail.discounts.wizard.shipping-discount.description') }}
    </sw-promotion-v2-wizard-description>
    {% endblock %}

    {% block sw_promotion_v2_settings_trigger_radio_switch %}

    <mt-switch
        v-model="useTrigger"
        class="sw-promotion-v2-settings-trigger-settings__use-trigger"
        :label="$tc('sw-promotion-v2.detail.discounts.settings.trigger.labelUseTrigger')"
    />
    {% endblock %}

    {% block sw_promotion_v2_settings_trigger_container %}
    <sw-container v-if="useTrigger">

        {% block sw_promotion_v2_settings_trigger_select_trigger_type %}
        <mt-select
            v-model="triggerType"
            class="sw-promotion-v2-settings-trigger-settings__trigger-type"
            :label="$tc('sw-promotion-v2.detail.discounts.settings.trigger.labelNumberOfTriggers')"
            :disabled="!acl.can('promotion.editor')"
            :options="triggerOptions"
        />
        {% endblock %}

        {% block sw_promotion_v2_settings_trigger_rule_selection_selection %}
        <sw-promotion-v2-rule-select
            v-model:collection="discount.discountRules"
            local-mode
            class="sw-promotion-v2-settings-trigger-settings__rule-selection"
            :criteria="ruleCriteria"
            :rule-scope="['cart']"
            :label="$tc('sw-promotion-v2.detail.discounts.settings.ruleSelection.labelSelection')"
            :placeholder="$tc('sw-promotion-v2.detail.discounts.settings.ruleSelection.placeholderSelection')"
            :disabled="!acl.can('promotion.editor')"
        />
        {% endblock %}

    </sw-container>
    {% endblock %}

</div>
{% endblock %}
